home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 118 / MacAddict 118 2006-06.toast / Software / Internet & Communication / Cyberduck 2.5.5 (freeware).dmg / AppleScript Samples / Readme.txt < prev    next >
Text File  |  2006-03-03  |  2KB  |  45 lines

  1. ========================================
  2. About the Cyberduck AppleScript Examples
  3. ========================================
  4.  
  5. General
  6. -------
  7.  
  8. For information about AppleScript in general, see [http://www.apple.com/applescript/].
  9.  
  10. To view the dictionary of Cyberduck available for scripting drag the Cyberduck application onto the Script Editor (/Applications/AppleScript/Script Editor) or choose 'Open Dictionary...' from the 'File' menu in Script Editor. Click the 'Cyberduck Suite' in the left pane  of the window to see the definitions.
  11.  
  12. Installation
  13. ------------
  14.  
  15. You can copy the sample scripts to ~/Library/Scripts/. Please keep in mind that you have to modify the scripts to make them usable for you.
  16. IMPORTANT: It seems that if the script is a folder action script you have to copy the file to ~/Library/Scripts/Folder Action Scripts/ to make it work.  
  17.  
  18. Samples
  19. -------
  20.  
  21. - Upload Sample.scpt
  22.  
  23. Note: For further information about folder action scripts, see [http://www.apple.com/applescript/folderactions/].
  24.  
  25. You have to modify this script with the correct connection settings. See the line where the connection is made: [connect to "hostname" with protocol "ftp" as user "username" with initial folder "directory"].
  26. You must attach this script to a folder in the 'Finder' (called 'Folder Action'). Right-click on a directory in the Finder, e.g. 'Upload' on the Desktop, and choose 'Attach Folder Action...'. Select the 'Upload Sample.scpt' script in ~/Library/Scripts/Folder Action Scripts/. 
  27. Every file dropped onto this folder will then be uploaded to the server specified above.
  28.  
  29. - Edit Sample.scpt
  30.  
  31. Shows how to check for the existance of a file, create new folders and files and opening a file for editing with the external editor.
  32.  
  33. - List Sample.scpt
  34.  
  35. Recursively lists a folder content on the server and prompts for each file found to download.
  36.  
  37. - Sync Sample.scpt
  38.  
  39. Synchronizes a remote with a local folder mirroring all missing files and replacing files on either site based on the modification time.
  40.  
  41. - Open URL Sample.scpt
  42.  
  43. You can send any FTP or SFTP URL to Cyberduck as does a third party application when Cyberduck is the default protocol handler e.g. for FTP; see [http://www.rubicode.com/Software/RCDefaultApp/].
  44.  
  45.